<!DOCTYPE html>
<html lang="en" xmlns:v-on="http://www.w3.org/1999/xhtml" xmlns:v-bind="http://www.w3.org/1999/xhtml">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
</head>
<body>
<div id="app">
<!-- []里面加'' 的是以字符串解析的，不加引号是以变量解析 -->
  <h2 class="title" v-bind:class="['active','Line']">{{message}}</h2>
  <h2 class="title" v-bind:class="[isActive,isLine]">{{message}}</h2>
  <h2 class="title" v-bind:class="getClases()">{{message}}</h2>
</div>
<script src="../js/vue.js"></script>
<script>
  const vm=new Vue({
    el:'#app',
    data:{
      message:'你好啊!',
      isActive:'aaaaaaaa',
      isLine:'vbvcvbvc'
    },
    methods:{
      getClases(){
        return [this.isActive,this.isLine]
      }
    }
  })
</script>

</body>
</html>